// project created on 1/17/2008 at 10:13 AM
using System;
using Whitemice.ZOGI;
using System.Collections;
using System.Collections.Generic;
using System.Threading;

namespace SimpleTest
{
  class SimpleTest
  {    
		public static void Main (string[] args)
		{
		  SimpleTest test;
		  
		  test  = new SimpleTest();
		  if (test.Establish())
		  {
		    test.Run();
        test.Shutdown();
			} else Console.WriteLine("Unable to establish server connection");
		}
		
		public  SimpleTest()
		{
		  /* Initialize ZOGI environment */
		  Server.Initialize();
    }
    
    public bool Establish()
    {
		  Server.Connection.Connect("localhost", 80, "adam", "fred123");
	    return Server.Connection.Connected;
	  }
	  
	  public void Run()
	  {
      Server.Connection.GetForLogin("trovato");
	  } /* Run */
    
    public void Shutdown()
    {
      Server.Connection.Disconnect();
    }
    

  }
}